package org.introjava.services;

import org.introjava.interfacec.Flyable;

public class FlyingService  {
    Flyable fly = null;
    
    public void bindFlyable(Flyable fly) {
        this.fly = fly;
    }
    
    public void onFly(){
        fly.up();
    }
    
    public void onLand(){
        fly.land();
    }
}
